import 'package:xin_he/generated/json/base/json_convert_content.dart';
import 'package:xin_he/page/mine/xin_he_adress_management/model/xin_he_address_item_model_entity.dart';

XinHeAddressItemModelEntity $XinHeAddressItemModelEntityFromJson(Map<String, dynamic> json) {
	final XinHeAddressItemModelEntity xinHeAddressItemModelEntity = XinHeAddressItemModelEntity();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		xinHeAddressItemModelEntity.id = id;
	}
	final int? fUserId = jsonConvert.convert<int>(json['fUserId']);
	if (fUserId != null) {
		xinHeAddressItemModelEntity.fUserId = fUserId;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		xinHeAddressItemModelEntity.name = name;
	}
	final String? telephone = jsonConvert.convert<String>(json['telephone']);
	if (telephone != null) {
		xinHeAddressItemModelEntity.telephone = telephone;
	}
	final int? fProvinceId = jsonConvert.convert<int>(json['fProvinceId']);
	if (fProvinceId != null) {
		xinHeAddressItemModelEntity.fProvinceId = fProvinceId;
	}
	final int? fCityId = jsonConvert.convert<int>(json['fCityId']);
	if (fCityId != null) {
		xinHeAddressItemModelEntity.fCityId = fCityId;
	}
	final int? fAreaId = jsonConvert.convert<int>(json['fAreaId']);
	if (fAreaId != null) {
		xinHeAddressItemModelEntity.fAreaId = fAreaId;
	}
	final String? detail = jsonConvert.convert<String>(json['detail']);
	if (detail != null) {
		xinHeAddressItemModelEntity.detail = detail;
	}
	final String? province = jsonConvert.convert<String>(json['province']);
	if (province != null) {
		xinHeAddressItemModelEntity.province = province;
	}
	final String? city = jsonConvert.convert<String>(json['city']);
	if (city != null) {
		xinHeAddressItemModelEntity.city = city;
	}
	final String? area = jsonConvert.convert<String>(json['area']);
	if (area != null) {
		xinHeAddressItemModelEntity.area = area;
	}
	final int? isDefault = jsonConvert.convert<int>(json['isDefault']);
	if (isDefault != null) {
		xinHeAddressItemModelEntity.isDefault = isDefault;
	}
	final dynamic remark = jsonConvert.convert<dynamic>(json['remark']);
	if (remark != null) {
		xinHeAddressItemModelEntity.remark = remark;
	}
	final dynamic versionNum = jsonConvert.convert<dynamic>(json['version_num']);
	if (versionNum != null) {
		xinHeAddressItemModelEntity.versionNum = versionNum;
	}
	final dynamic removed = jsonConvert.convert<dynamic>(json['removed']);
	if (removed != null) {
		xinHeAddressItemModelEntity.removed = removed;
	}
	final dynamic createTime = jsonConvert.convert<dynamic>(json['createTime']);
	if (createTime != null) {
		xinHeAddressItemModelEntity.createTime = createTime;
	}
	final dynamic updateTime = jsonConvert.convert<dynamic>(json['updateTime']);
	if (updateTime != null) {
		xinHeAddressItemModelEntity.updateTime = updateTime;
	}
	final dynamic fCreateUserId = jsonConvert.convert<dynamic>(json['fCreateUserId']);
	if (fCreateUserId != null) {
		xinHeAddressItemModelEntity.fCreateUserId = fCreateUserId;
	}
	final dynamic fUpdateUserId = jsonConvert.convert<dynamic>(json['fUpdateUserId']);
	if (fUpdateUserId != null) {
		xinHeAddressItemModelEntity.fUpdateUserId = fUpdateUserId;
	}
	final bool? isSelected = jsonConvert.convert<bool>(json['isSelected']);
	if (isSelected != null) {
		xinHeAddressItemModelEntity.isSelected = isSelected;
	}
	return xinHeAddressItemModelEntity;
}

Map<String, dynamic> $XinHeAddressItemModelEntityToJson(XinHeAddressItemModelEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['fUserId'] = entity.fUserId;
	data['name'] = entity.name;
	data['telephone'] = entity.telephone;
	data['fProvinceId'] = entity.fProvinceId;
	data['fCityId'] = entity.fCityId;
	data['fAreaId'] = entity.fAreaId;
	data['detail'] = entity.detail;
	data['province'] = entity.province;
	data['city'] = entity.city;
	data['area'] = entity.area;
	data['isDefault'] = entity.isDefault;
	data['remark'] = entity.remark;
	data['version_num'] = entity.versionNum;
	data['removed'] = entity.removed;
	data['createTime'] = entity.createTime;
	data['updateTime'] = entity.updateTime;
	data['fCreateUserId'] = entity.fCreateUserId;
	data['fUpdateUserId'] = entity.fUpdateUserId;
	data['isSelected'] = entity.isSelected;
	return data;
}